/**
 * @Title: drugStore_router.js
 * @Description:定点机构诚信router
 * Copyright: Copyright (c) 2014 
 * Company:中国平安
 *
 * @Project MHIS-FWA
 * @author EX-LUORONG001
 * @date 2015年02月12日 上午11:54:06
 * @version V1.0
 */
;
(function(){
	'use strict';
	
	var app = angular.module('fwa.routers');
	app.config(['BaseURL','Config', function(baseUrl,Config){
		
		var states = Config.states;
		    
        /**********************************
         ********定点药店诚信管理*******
		 **********************************/
        
        
        /**
         * 诚信考评
         */
        
    	states.push({
			name:'drugStoreIntgrityManager',
            url:'/drugStoreIntgrityManager',
            data:{
            	title:'定点药店诚信考评',
            	tabRoot:'drugStoreIntgrityManager'
            },
            deepStateRedirect: true,
            sticky: true,
            views:{
                'drugStoreIntgrityManager@':{
                	template:'<div class="full-width full-height" ui-view></div>',
                    controller:function($state){
                        if($state.current.name == 'drugStoreIntgrityManager') {
                            $state.go('drugStoreIntgrityManager.drugStoreIntgrityList');
                        }
                    }
                }
            }
		});
    	
    	/**
    	 * 定点药店考评列表信息
    	 */
        states.push({
			name:'drugStoreIntgrityManager.drugStoreIntgrityList',
            url:'/drugStoreIntgrityList',
            data:{
            	title:'定点药店诚信考评',
            	tabRoot:'drugStoreIntgrityManager'
            },
            views:{
                '@drugStoreIntgrityManager':{
                	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationDrugStore/drugStoreIntgrity/drugStoreIntgrityList.html',
	        		controller:'DrugStoreIntgrityCtrl'
                }
            }
		});
        
        /**
         * 定点药店开始考评页面
         */
        states.push({
			name:'drugStoreIntgrityManager.updateDrugStore',
	        url:'/updateDrugStore/{evaluationCode}',
	        data:{
	        	title:'定点药店诚信考评',
	        	tabRoot:'drugStoreIntgrityManager'
	        },
	        views:{
	            '@drugStoreIntgrityManager':{
	            	 templateUrl:baseUrl+'views/hcpms/evaluation/evaluationDrugStore/drugStoreIntgrity/updateDrugStore_view.html',
	                 controller:'UpdateDrugStoreCtrl'
	            }
	        }
		});
        
        
        
        
        /**
         * 已经完成的
         */
        states.push({
			name:'drugStoreIntgrityManager.finishDrugStore',
	        url:'/finishDrugStore/{evaluationCode}',
	        data:{
	        	title:'定点药店诚信考评',
	        	tabRoot:'drugStoreIntgrityManager'
	        },
	        views:{
	            '@drugStoreIntgrityManager':{
	            	 templateUrl:baseUrl+'views/hcpms/evaluation/evaluationDrugStore/drugFinish/finishUpdateDrugStore_view.html',
	                 controller:'FinishUpdateDrugStoreCtrl'
	            }
	        }
		});
        
        
        
        
        
        /**
         * 定点药店考评审核查询列表页面
         */
        states.push({
			name:'drugStoreReviewManager',
            url:'/drugStoreReviewManager',
            data:{
            	title:'定点药店诚信审核',
            	tabRoot:'drugStoreReviewManager'
            },
            deepStateRedirect: true,
            sticky: true,
            views:{
                'drugStoreReviewManager@':{
                	template:'<div class="full-width full-height" ui-view></div>',
                    controller:function($state){
                        if($state.current.name == 'drugStoreReviewManager') {
                            $state.go('drugStoreReviewManager.drugStoreReviewList');
                        }
                    }
                }
            }
		});
        
        /**
          定点药店考评审核查询列表页面
         */
        states.push({
			name:'drugStoreReviewManager.drugStoreReviewList',
            url:'/drugStoreReviewList',
            data:{
            	title:'定点药店诚信审核',
            	tabRoot:'drugStoreReviewManager'
            },
            views:{
                '@drugStoreReviewManager':{
                	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationDrugStore/drugStoreReview/drugStoreReviewList.html',
	                 controller:'DrugStoreReviewCtrl'
                }
            }
		});
        
        /**
         * 定点药店开始审核页面
         */
        states.push({
			name:'drugStoreReviewManager.drugStoreReview',
	        url:'/drugStoreReview/{evaluationCode}',
	        data:{
	        	title:'定点药店诚信审核',
	        	tabRoot:'drugStoreReviewManager'
	        },
	        views:{
	            '@drugStoreReviewManager':{
	            	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationDrugStore/drugStoreReview/reviewUpdateDrugStore_view.html',
                    controller:'ReviewUpdateDrugStoreCtrl'
	            }
	        }
		});
        
        
        
        
        
        
        /**
         * 定点药店考评审批列表页面
         */
        states.push({
			name:'drugStoreApproveManager',
            url:'/drugStoreApproveManager',
            data:{
            	title:'定点药店诚信审批',
            	tabRoot:'drugStoreApproveManager'
            },
            deepStateRedirect: true,
            sticky: true,
            views:{
                'drugStoreApproveManager@':{
                	template:'<div class="full-width full-height" ui-view></div>',
                    controller:function($state){
                        if($state.current.name == 'drugStoreApproveManager') {
                            $state.go('drugStoreApproveManager.drugStoreApproveList');
                        }
                    }
                }
            }
		});
        
        /**
         * 定点药店考评审批列表页面
         */
        states.push({
			name:'drugStoreApproveManager.drugStoreApproveList',
            url:'/drugStoreApproveList',
            data:{
            	title:'定点药店诚信审批',
            	tabRoot:'drugStoreApproveManager'
            },
            views:{
                '@drugStoreApproveManager':{
                	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationDrugStore/drugStoreApprove/drugStoreApproveList.html',
	                 controller:'DrugStoreApproveCtrl'
                }
            }
		});
        
        /**
         * 定点药店考评开始审批页面
         */
        states.push({
			name:'drugStoreApproveManager.drugStoreOrgApprove',
	        url:'/drugStoreOrgApprove/{evaluationCode}',
	        data:{
	        	title:'定点药店诚信审批',
	        	tabRoot:'drugStoreApproveManager'
	        },
	        views:{
	            '@drugStoreApproveManager':{
	            	    templateUrl:baseUrl+'views/hcpms/evaluation/evaluationDrugStore/drugStoreApprove/approveUpdateDrugStore_view.html',
	                    controller:'ApproveUpdateDrugStoreCtrl'
	            }
	        }
		});
        /**
         * 定点药店违规情况
         */
        
        states.push({
			name:'drugStoreIllegal',
            url:'/drugStoreIllegal',
            data:{
            	title:'定点药店违规情况',
            	tabRoot:'drugStoreIllegal'
            },
            deepStateRedirect: true,
            sticky: true,
            views:{
                'drugStoreIllegal@':{
                	templateUrl:baseUrl+'views/hcpms/evaluation/evaluationDrugStore/evaluationIllegal/illegalQuery.html',
                	controller:'DrugStoreIllegalQueryCtrl'
                }
            }
		});
        
        /**
         * 药店考评撤销操作
         */
        states.push({
			name:'drugStoreIntgrityManager.cancelIntgrity',
	        url:'/drugStoreIntgrityManager.cancelIntgrity/{evaluationCode}',
	        data:{
	        	title:'定点药店诚信考评',
	        	tabRoot:'drugStoreIntgrityManager'
	        },
	        views:{
	            '@drugStoreIntgrityManager':{
	            	 templateUrl:baseUrl+'views/hcpms/evaluation/evaluationDrugStore/drugStoreIntgrity/cancelDrugStoreIntgrity.html',
	                 controller:'CancelDrugStoreIntgrityCtrl'
	            }
	        }
		});
        /**
         * 药店诚信审核岗的撤销操作
         */
        states.push({
			name:'drugStoreReviewManager.cancelReview',
	        url:'/drugStoreReviewManager/{evaluationCode}',
	        data:{
	        	title:'定点药店诚信考评',
	        	tabRoot:'drugStoreReviewManager'
	        },
	        views:{
	            '@drugStoreReviewManager':{
	            	 templateUrl:baseUrl+'views/hcpms/evaluation/evaluationDrugStore/drugStoreReview/cancelReview.html',
	                 controller:'CancelDrugStoreReviewCtrl'
	            }
	        }
		});
        
        
       //end
	}]);
})();
